package com.limox.bishe.diyui;

import android.R;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ExpandableListView;

public class diyExpanableListview extends ExpandableListView {


	private float lastMotionX = -1;
	private float lastMotionY = -1;
	private float firstmotionX = -2; // 第一次点击时触摸点的x位置
	private float firstmotionY = -2; // 第一次点击时触摸点的y位置

	
	public diyExpanableListview(Context context, AttributeSet attrs,
			int defStyle) {
		super(context, attrs, defStyle);
		// TODO Auto-generated constructor stub
	}
	
	public diyExpanableListview(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	}
	
	public diyExpanableListview(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
	}

	@Override
	public boolean onInterceptTouchEvent(MotionEvent ev) {
		// TODO Auto-generated method stub
		 
 		this.lastMotionX = ev.getX();
		this.lastMotionY = ev.getY();

		switch (ev.getAction()) {
		case MotionEvent.ACTION_DOWN:
			firstmotionX = lastMotionX;
			firstmotionY=lastMotionY;
			  
		case MotionEvent.ACTION_MOVE:
			  
		}
		
		
		
		return false;
	}

 

}
